﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UpdatePrice.aspx.cs" Inherits="SalesManagement.Modules.List.UpdatePrice" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:ResourceManager ID="ResourceManager1" runat="server" />
    <ext:Viewport ID="ViewPort1" runat="server">
        <Items>
            <ext:Toolbar ID="tbMain" runat="server">
                <Items>
                    <ext:ToolbarSpacer />
                    <ext:Button ID="btnSave" runat="server" Text="Cập nhật" Icon="Tablesave">
                        <DirectEvents>
                            <Click OnEvent="btnSaveExit_Click" />
                        </DirectEvents>
                    </ext:Button>
                    <ext:Button ID="Button1" runat="server" Text="Lưu" Icon="Disk">
                        <DirectEvents>
                            <Click OnEvent="btnSave_Click" />
                        </DirectEvents>
                    </ext:Button>
                    <ext:Button ID="Button2" runat="server" Text="Thoát" Icon="Decline">
                        <DirectEvents>
                            <Click OnEvent="btnExit_Click" />
                        </DirectEvents>
                    </ext:Button>
                </Items>
            </ext:Toolbar>
            <ext:Panel ID="Panel0" runat="server" Frame="true" Height="100" Layout="ColumnLayout">
                <Defaults>
                    <ext:Parameter Name="Anchor" Value="99%">
                    </ext:Parameter>
                </Defaults>
                <Items>
                    <ext:Panel ID="Panel2" runat="server" ColumnWidth="0.5" Layout="FormLayout" LabelWidth="100">
                        <Defaults>
                            <ext:Parameter Name="Anchor" Value="99%">
                            </ext:Parameter>
                        </Defaults>
                        <Items>
                            <ext:ComboBox ID="cbWarehouse" FieldLabel="Kho hàng" runat="server" Editable="false"
                                DataIndex="Title" Flex="1">
                                <Items>
                                    <ext:ListItem Text="kho A" Value="hcm" />
                                    <ext:ListItem Text="kho B" Value="hn" />
                                </Items>
                                <SelectedItem Value="hcm" />
                            </ext:ComboBox>
                            <ext:ComboBox ID="ComboBox1" FieldLabel="Nhóm hàng" runat="server" Editable="false"
                                DataIndex="Title" Flex="1">
                                <Items>
                                    <ext:ListItem Text="AB001" Value="hcm" />
                                    <ext:ListItem Text="AB002" Value="hn" />
                                </Items>
                                <SelectedItem Value="hcm" />
                            </ext:ComboBox>
                        </Items>
                    </ext:Panel>
                    <ext:Panel ID="Panel3" runat="server" ColumnWidth="0.4" Layout="FormLayout" LabelWidth="100">
                        <Defaults>
                            <ext:Parameter Name="Anchor" Value="99%">
                            </ext:Parameter>
                        </Defaults>
                        <Items>
                            <ext:ComboBox ID="ComboBox4" FieldLabel="Loại giá" runat="server" Editable="false"
                                DataIndex="Title">
                                <Items>
                                    <ext:ListItem Text="Giá gốc/Giá mua/Tất cả" Value="hcm" />
                                    <ext:ListItem Text="Giá gốc" Value="hn" />
                                </Items>
                                <SelectedItem Value="hcm" />
                            </ext:ComboBox>
                            <ext:ComboBox ID="ComboBox5" FieldLabel="Phương thức" runat="server" Editable="false"
                                DataIndex="Title">
                                <Items>
                                    <ext:ListItem Text="Giá trị/Tỉ lệ" Value="hcm" />
                                    <ext:ListItem Text="Giá trị" Value="hn" />
                                </Items>
                                <SelectedItem Value="hcm" />
                            </ext:ComboBox>
                            <ext:TextField ID="TextField1" FieldLabel="Giá trị" runat="server" />
                        </Items>
                    </ext:Panel>
                </Items>
            </ext:Panel>
            <ext:GridPanel ID="GridPanel2" runat="server" AutoExpandColumn="pro_name" Border="false"
                ColumnLines="true">
                <Store>
                    <ext:Store ID="Store2" runat="server">
                        <Reader>
                            <ext:JsonReader IDProperty="pro_id">
                                <Fields>
                                    <ext:RecordField Name="pro_id" />
                                    <ext:RecordField Name="pro_name" />
                                    <ext:RecordField Name="pro_unit" />
                                    <ext:RecordField Name="pro_Cost" />
                                    <ext:RecordField Name="pro_Price" />
                                </Fields>
                            </ext:JsonReader>
                        </Reader>
                    </ext:Store>
                </Store>
                <ColumnModel ID="ColumnModel2" runat="server">
                    <Columns>
                        <ext:Column ColumnID="pro_id" DataIndex="pro_id" Header="Mã hàng" />
                        <ext:Column DataIndex="pro_name" Header="Tên hàng" />
                        <ext:Column DataIndex="pro_unit" Header="Đơn vị tính" />
                        <ext:Column DataIndex="pro_Cost" Header="Giá gốc" />
                        <ext:Column DataIndex="pro_Price" Header="Giá mua" />
                    </Columns>
                </ColumnModel>
                <LoadMask ShowMask="true" />
            </ext:GridPanel>
        </Items>
    </ext:Viewport>
    </form>
</body>
</html>
